import request from '@/utils/request'

// 查询勋章赠送记录列表
export function listMedalUserGive(query) {
  return request({
    url: '/business/medalUserGive/list',
    method: 'get',
    params: query
  })
}

// 查询勋章赠送记录详细
export function getMedalUserGive(id) {
  return request({
    url: '/business/medalUserGive/' + id,
    method: 'get'
  })
}

// 新增勋章赠送记录
export function addMedalUserGive(data) {
  return request({
    url: '/business/medalUserGive',
    method: 'post',
    data: data
  })
}

// 修改勋章赠送记录
export function updateMedalUserGive(data) {
  return request({
    url: '/business/medalUserGive',
    method: 'put',
    data: data
  })
}

// 删除勋章赠送记录
export function delMedalUserGive(id) {
  return request({
    url: '/business/medalUserGive/' + id,
    method: 'delete'
  })
}
